﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Nirvana
{
    public sealed class NetClientSend
    {
        public NetClient.SendDelegate sendDelegate;
        public NetClient netclient;
        public NetSendBody netSendBody;

        public void OnSendSuccess()
		{
            try
            {
                NetSendBody.PushSerial(netSendBody);
                if (sendDelegate != null)
                {
                    sendDelegate();
                }
            }
            finally
            {
                netclient.StartSend();//继续检测发送队列缓存数据
            }
        }


	}
}
